package day0531;

import java.util.Scanner;

public class File2 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);
        System.out.println("请输入一个5位数：");
        int n=s.nextInt();
        int w=n/ (10*10*10*10)  %10;
        int q=n/ (10*10*10)  %10;
        int b=n/ (10*10)  %10;
        int h=n/ 10*1   %10;
        int g=n  %10;
        if(w*w*w*w*w + q*q*q*q*q + b*b*b*b*b + h*h*h*h*h + g*g*g*g*g  == n){
            System.out.println("是五角星数");
        }else{
            System.out.println("不是五角星数");
        }

    }
}
